<?php
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex"); ?>
<div id="tabs2"></div>
<script charset="utf-8" type="text/javascript">
Ext.onReady(function(){

 $elem = document.getElementById('tabs2').offsetTop;
 windowHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
   windowHeight = window.innerHeight-$elem;
  } else if( document.documentElement && (  document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    windowHeight = document.documentElement.clientHeight-$elem;
  } else if( document.body && ( document.body.clientHeight ) ) {
    //IE 4 compatible
    windowHeight = document.body.clientHeight-$elem;
  }
    // second tabs built from JS
    var tabs2 = new Ext.TabPanel({
        renderTo: 'tabs2',
        activeTab: 0,
        height: windowHeight-113,
        plain:true,
        defaults:{autoScroll: true},
        items:[{
                title: 'Remessas',
				autoLoad: 'Modules/FTK9D4D0/Lib/a05_src_orders.mex',
				minimizable:true
            },{
                title: 'Pendencias',
				autoLoad: 'Modules/FTK9D4D0/Lib/a05_ICIGest.php',
				minimizable:true
            },{
                title: 'Ordens de Pagamento (Lotes)',
                autoLoad:'Modules/FTK9D4D0/Lib/a05_src_payorders.mex'
            },{

                title: 'Transmissoes',
                autoLoad:'Modules/FTK9D4D0/Lib/a05_src_transmit.mex'
            },{

                title: 'Transmissoes de Loja',
                autoLoad:'Modules/FTK9D4D0/Lib/a_05trmdmfilter.php'
            },{
                title: 'Consultas',
				autoLoad:'Modules/FTK9D4D0/Lib/a05_src_query.mex'
            },{
                title: 'Comunicação',
				autoLoad:'Modules/FTK9D4D0/a05_TRN.php'
            }
        ]
    });

    function handleActivate(tab){
        alert(tab.title + ' was activated.');
    }
});</script>